Exploratory plots

Analysis of Medication Intake

Analysis of Complications

Analysis of Exercise

Initial BMI

Since the range of initial glucose is quite large, we found median and quartiles are a little higher in tb patients than in non-tb.

Glucose Management

For each district in Shanghai, obtain the estimate and confidence interval of the adjusted odds ratio for having tb comparing diabetes who regularly monitor glucose to those who don’t monitor glucose regularly keeping all other variables fixed. The results show Huangpu district has the highest OR and Baoshan district has the lowest OR.